package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easy.common.bean.SysRole;
import com.easy.common.bean.SysUser;

import java.util.List;

public interface IUserService {

    public SysUser insert(SysUser user);

    public SysUser update(SysUser user);

    int delete(Integer id);

    SysUser getByID(Integer id);

    IPage<SysUser> getListByPage(IPage page, SysUser user);

    List<SysUser> getList(SysUser user);

    int setStatus(Integer id);

    SysUser assignRole(SysUser user);

    SysUser getByUsername(String username);

    List<SysRole> getUserRoles(SysUser user);
}
